{extend name="index/index" /}
{block name="index"}

        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                Amaze UI 表单
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">表单</a></li>
                <li class="am-active">Amaze UI 表单</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 表单
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <i class="am-icon-search"></i>
                                <input type="text" class="form-control form-control-solid" placeholder="搜索..."> </div>
                        </div>
                    </div>


                </div>
                <div class="tpl-block ">

                    <div class="am-g tpl-amazeui-form">


                        <div class="am-u-sm-12 am-u-md-9">
                            <form class="am-form am-form-horizontal" action="{:url('admin/HmyUser/updata')}" method="post">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">姓名</label>
                                    <div class="am-u-sm-9">
                                        {empty name="data.name"}
                                        <label for="user-weibo" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">未添加</label>
                                        {else/}
                                        <label for="user-weibo" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">{$data['name']}</label>
                                        {/empty}
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-phone" class="am-u-sm-3 am-form-label">电话</label>
                                    <label for="user-phone" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">{$data['tel']}</label>
                                </div>


                                <div class="am-form-group">
                                    <label for="user-weibo" class="am-u-sm-3 am-form-label">年龄</label>
                                    {empty name="data.age"}
                                    <label for="user-weibo" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">未添加</label>
                                    {else/}
                                    <label for="user-weibo" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">{$data['age']}</label>
                                    {/empty}
                                </div>

                                <div class="am-form-group">
                                    <label for="user-weibo" class="am-u-sm-3 am-form-label">地址</label>
                                    {empty name="data.age"}
                                        <label for="user-weibo" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">未添加</label>
                                    {else/}
                                        <label for="user-weibo" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">{$data['province']}</label>
                                    {/empty}
                                </div>       

                                <div class="am-form-group">
                                    <label for="user-weibo" class="am-u-sm-3 am-form-label">状态</label>
                                    <label for="user-weibo" class="am-u-sm-3 am-form-label" style="text-align:center;float:left">
                                        {if condition="$data.status eq 1"}
                                        <td><font color="green" size="2"><strong>运行中</strong></font></td>
                                        {else /}
                                        <td><font color="red" size="2"><strong>禁用中</strong></font></td>
                                        {/if}
                                    </label>

                                </div>

                                <div class="am-form-group">
                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                        {if condition="$data.status eq 1"}
                                        <td><a href="{:url('admin/HmyUser/status',['id'=>$data['id']])}" class="am-btn am-btn-primary">禁用</a></td>
                                        {else /}
                                        <td><a href="{:url('admin/HmyUser/status',['id'=>$data['id']])}" class="am-btn am-btn-primary">启动</a></td>
                                        {/if}</td>
                                        
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>

        </div>

{/block}
